import { IsString, Length } from 'class-validator';

export class CreateDepartmentDto {
  @IsString()
  @Length(2, 20, { message: 'name的长度不能小于2不能大于20' })
  readonly departmentname: string;
  readonly created_at: string;
  readonly updated_at: string;
}
